Optimal. Leaf size=72 \[ -\frac{\left (a+b \log \left (c x^n\right )\right ) \left (d+e \log \left (f x^r\right )\right )}{x}-\frac{e r \left (a+b \log \left (c x^n\right )+b n\right )}{x}-\frac{b n \left (d+e \log \left (f x^r\right )\right )}{x}-\frac{b e n r}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0707982, antiderivative size = 72, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.083, Rules used = {2304, 2366} \[ -\frac{\left (a+b \log \left (c x^n\right )\right ) \left (d+e \log \left (f x^r\right )\right )}{x}-\frac{e r \left (a+b \log \left (c x^n\right )+b n\right )}{x}-\frac{b n \left (d+e \log \left (f x^r\right )\right )}{x}-\frac{b e n r}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2304
Rule 2366
Rubi steps
\begin{align*} \int \frac{\left (a+b \log \left (c x^n\right )\right ) \left (d+e \log \left (f x^r\right )\right )}{x^2} \, dx &=-\frac{b n \left (d+e \log \left (f x^r\right )\right )}{x}-\frac{\left (a+b \log \left (c x^n\right )\right ) \left (d+e \log \left (f x^r\right )\right )}{x}-(e r) \int \frac{-a \left (1+\frac{b n}{a}\right )-b \log \left (c x^n\right )}{x^2} \, dx\\ &=-\frac{b e n r}{x}-\frac{e r \left (a+b n+b \log \left (c x^n\right )\right )}{x}-\frac{b n \left (d+e \log \left (f x^r\right )\right )}{x}-\frac{\left (a+b \log \left (c x^n\right )\right ) \left (d+e \log \left (f x^r\right )\right )}{x}\\ \end{align*}
Mathematica [A] time = 0.0642405, size = 57, normalized size = 0.79 \[ -\frac{e (a+b n) \log \left (f x^r\right )+a d+a e r+b \log \left (c x^n\right ) \left (d+e \log \left (f x^r\right )+e r\right )+b d n+2 b e n r}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.187, size = 1443, normalized size = 20. \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.16872, size = 127, normalized size = 1.76 \begin{align*} -b e{\left (\frac{r}{x} + \frac{\log \left (f x^{r}\right )}{x}\right )} \log \left (c x^{n}\right ) - \frac{b e n{\left (2 \, r + \log \left (f\right ) + \log \left (x^{r}\right )\right )}}{x} - \frac{b d n}{x} - \frac{a e r}{x} - \frac{b d \log \left (c x^{n}\right )}{x} - \frac{a e \log \left (f x^{r}\right )}{x} - \frac{a d}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.904932, size = 247, normalized size = 3.43 \begin{align*} -\frac{b e n r \log \left (x\right )^{2} + b d n + a d +{\left (2 \, b e n + a e\right )} r +{\left (b e r + b d\right )} \log \left (c\right ) +{\left (b e n + b e \log \left (c\right ) + a e\right )} \log \left (f\right ) +{\left (b e r \log \left (c\right ) + b e n \log \left (f\right ) + b d n +{\left (2 \, b e n + a e\right )} r\right )} \log \left (x\right )}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 3.16067, size = 153, normalized size = 2.12 \begin{align*} - \frac{a d}{x} - \frac{a e r \log{\left (x \right )}}{x} - \frac{a e r}{x} - \frac{a e \log{\left (f \right )}}{x} - \frac{b d n \log{\left (x \right )}}{x} - \frac{b d n}{x} - \frac{b d \log{\left (c \right )}}{x} - \frac{b e n r \log{\left (x \right )}^{2}}{x} - \frac{2 b e n r \log{\left (x \right )}}{x} - \frac{2 b e n r}{x} - \frac{b e n \log{\left (f \right )} \log{\left (x \right )}}{x} - \frac{b e n \log{\left (f \right )}}{x} - \frac{b e r \log{\left (c \right )} \log{\left (x \right )}}{x} - \frac{b e r \log{\left (c \right )}}{x} - \frac{b e \log{\left (c \right )} \log{\left (f \right )}}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.25003, size = 146, normalized size = 2.03 \begin{align*} -\frac{b n r e \log \left (x\right )^{2} + 2 \, b n r e \log \left (x\right ) + b r e \log \left (c\right ) \log \left (x\right ) + b n e \log \left (f\right ) \log \left (x\right ) + 2 \, b n r e + b r e \log \left (c\right ) + b n e \log \left (f\right ) + b e \log \left (c\right ) \log \left (f\right ) + b d n \log \left (x\right ) + a r e \log \left (x\right ) + b d n + a r e + b d \log \left (c\right ) + a e \log \left (f\right ) + a d}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]